package com.example.bicycle.domain.mqtt;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("receive_message")
public class ReceiveMessageVo {
    @TableId
    Integer id;
    @JSONField(name = "isExcept")
    Integer isExcept;
    @JSONField(name = "Lock")
    Integer isLock; // 1是锁 0是开
    @JSONField(name = "Bike_ID")
    Integer bikeId;
    @JSONField(name = "Battery_ID")
    Integer batteryId;
    @JSONField(name = "Voltage_P")
    Float voltageV1;
    @JSONField(name = "Voltage_N")
    Float voltageV2;
    @JSONField(name = "Tem_1")
    Float temperatureT1;
    @JSONField(name = "Tem_2")
    Float temperatureT2;
    @JSONField(name = "Longitude")
    Float longitude;
    @JSONField(name = "Dimension")
    Float latitude;
    Date time;
}
